<template>
  <div class="show">
    <div class="form-table-box">
        <el-form ref="infoForm" :model="infoForm" label-width="120px">
            <el-form-item label="广告" prop="type">
                <el-radio-group v-model="infoForm.banner">
                    <el-radio :label="1">显示</el-radio>
                    <el-radio :label="0">不显示</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="公告">
                <el-radio-group v-model="infoForm.notice">
                    <el-radio :label="1">显示</el-radio>
                    <el-radio :label="0">不显示</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="广告下的图标">
                <el-radio-group v-model="infoForm.channel">
                    <el-radio :label="1">显示</el-radio>
                    <el-radio :label="0">不显示</el-radio>
                </el-radio-group>
                <div class="form-tip">那几个图标</div>
            </el-form-item>
            <el-form-item label="首页分类图片或文字">
                <el-radio-group v-model="infoForm.index_banner_img">
                    <el-radio :label="1">图片</el-radio>
                    <el-radio :label="0">文字</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSubmitInfo">确定保存</el-button>
                <el-button @click="goBackPage">取消</el-button>
            </el-form-item>
        </el-form>
    </div>
  </div>
</template>
<script>
import { getShowSetting } from '@/api/setting.js'
export default {
  data(){
    return {
      infoForm:{

      }
    }
  },
  mounted(){
    this.getInfo()
  },
  methods:{
    async getInfo(){
      let res = await getShowSetting()
      if(res.code === 0){
        this.infoForm = res.data
      }else {
        this.$message({
          type:'error',
          message:'获取显示请求失败'
        })
      }
    },
    onSubmitInfo(){

    },
    goBackPage(){

    }
  }
}
</script>

<style lang="scss" scoped>

</style>

